package com.frogs.ucenter.v1.request;

import java.math.BigDecimal;

import javax.servlet.http.HttpServletRequest;

import com.frogs.framework.util.StringUtil;
import com.frogs.framework.web.HttpRequestInfo;
import com.frogs.system.web.api.request.Request;

/**
 * 充值回调请求参数类
 *
 * @author lijian
 * @version 2014年7月29日 - 上午10:37:06
 */
public class UserRechargePayCallbackRequest extends Request {
	
	/**
	 * 业务系统订单编号
	 */
	private String orderSn;
	/**
	 * 订单来源
	 */
	private String orderSource;
	/**
	 * 支付金额
	 */
	private BigDecimal amount;
	/**
	 * 订单描述
	 */
	private String orderDesc;
	/**
	 * 支付产品名称
	 */
	private String productName;
	/**
	 * 支付渠道key
	 */
	private String channelKey;
	/**
	 * 支付流水号
	 */
	private String serialNo;
	/**
	 * 支付状态
	 */
	private String status;
	
	private String sign;
	
	public UserRechargePayCallbackRequest() {
	}
	
	@Override
	public void parse(HttpServletRequest request) {
		HttpRequestInfo requestInfo = new HttpRequestInfo(request);
		//
		this.orderSn = requestInfo.getParameter("orderSn", "");
		this.orderSource = requestInfo.getParameter("orderSource", "");
		this.amount = requestInfo.getBigDecimalParameter("amount");
		this.orderDesc = StringUtil.fixHtml(requestInfo.getParameter("orderDesc", ""));
		this.productName = requestInfo.getParameter("productName", "");
		this.channelKey = requestInfo.getParameter("channelKey", "");
		this.serialNo = requestInfo.getParameter("serialNo", "");
		this.status = requestInfo.getParameter("status", "");
		this.sign = requestInfo.getParameter("sign", "");
	}

	public String getOrderSn() {
		return orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	public String getOrderSource() {
		return orderSource;
	}

	public void setOrderSource(String orderSource) {
		this.orderSource = orderSource;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public String getOrderDesc() {
		return orderDesc;
	}

	public void setOrderDesc(String orderDesc) {
		this.orderDesc = orderDesc;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getChannelKey() {
		return channelKey;
	}

	public void setChannelKey(String channelKey) {
		this.channelKey = channelKey;
	}

	public String getSerialNo() {
		return serialNo;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

}
